import java.util.Date;
class Student{
    public int age;
    public String name;
    public static String classroom;//不属于对象，当然不能在构造方法里写了！！！！！

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
public class Test {
     public static void main(String[] args){
         Student s1 = new Student(10,"李华");
         System.out.println(s1);
     }
 }



/*    public void show(){
        System.out.println("姓名: "+name+"年龄: "+age);
    }
    public static String classroom = "109";
    public static String getClassroom(){
        Student student = new Student();
        student.show();
        return classroom;
    }*/

/*
//实例代码块
    {
            this.age=10;
            this.name="李华";
            System.out.println("实例代码块");
            }
//静态代码块
static{
        classroom="109";
        System.out.println("静态代码块");
        }
*/

class Data {

    private int x;
    private int y;

    private Data(int x, int y) {
        x = x;
        y = y;
    }

    private int getX() {
        return x;
    }

    private int getY() {
        return y;
    }

}

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }

}